package com.mtsmda.oracleOfficialTutorialJAVA7.chapter1;

import java.util.Date;
import java.util.GregorianCalendar;

public class DateCompire {
	
	public static void main(String[] args) {
		Date nowDate = new Date();
		
		GregorianCalendar calendar = new GregorianCalendar(2015, 2, 1, 7, 7, 7);
		Date time = calendar.getTime();
		System.out.println(time.after(nowDate));
		
		System.out.println(time.compareTo(nowDate));
		System.out.println(time.getTime());
		System.out.println(nowDate.getTime());
		System.out.println((time.getTime() >= nowDate.getTime()));
	}
	
}